package com.region.http.client.core;

import com.region.http.client.annotation.configurer.Asynchronous;
import com.region.http.client.model.RequestMeta;

import java.lang.annotation.Annotation;

/**
 * @author 26225
 * @date 2024/8/31 16:16
 * @description
 */
public class AsynchronousMetaResolver implements MetaResolver {
    @Override
    public void doResolver(RequestMeta.RequestMetaBuilder builder, Annotation annotation, MetaChain chain) {
        if (annotation instanceof Asynchronous) {
            builder.asynchronous();
        }
        chain.doResolver(builder, annotation);
    }
}
